#include "ItemManager.hpp"

unsigned int ItemManager::nextId = 0;
std::map<unsigned int, Item*> ItemManager::Items;

Item* ItemManager::getItem(unsigned int id)
{
	if (Items.find(id) != Items.end())
		return Items[id];

	return NULL;
}

void ItemManager::addItem(Item* item)
{
	Items[nextId] = item;
	item->setId(nextId);
	++nextId;
}
